package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.bean.vo.HomeVO;
import com.cskaoyan.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Fengyi
 * @description: 首页显示
 * @time: 2021/7/11 20:58
 */

@RestController
public class HomeController {

    @Autowired
    HomeService homeservice;

    @RequestMapping("/wx/home/index")
    public BaseRespVo home() {
        HomeVO data = homeservice.queryAll();
        return BaseRespVo.ok(data);
    }
}
